package com.market.dao.jpa;

import org.springframework.stereotype.Repository;

import com.market.dao.PickupScheduleDao;
import com.market.domain.PickupSchedule;
@Repository("pickupCalendar")
public class PickupScheduleJpa extends GenericDaoJpa<PickupSchedule, Long> implements
		PickupScheduleDao {
	public PickupScheduleJpa(){
		super(PickupSchedule.class);
	}

	public void remove(PickupSchedule pickupSchedule) {
		if(this.findById(pickupSchedule.getId()) == null){
			log.debug(this.getClass() + " PickupSchedule with id " + pickupSchedule.getId() + " is not found, can not be deleted");
		}else{
			log.debug(this.getClass() + " PickupSchedule with id " + pickupSchedule.getId() + " is found, will be deleted");
			super.removeById(pickupSchedule.getId());
		}	
		
	}
	
}
